# 隐式等待在整个driver周期都起作用,只需要在最开始设置一次,针对所有元素
from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get('https://www.baidu111.com')
driver.implicitly_wait(5)

print(driver.title)
kw = driver.find_element(By.ID, 'kw')
print(kw.get_attribute('outerHTML'))

driver.quit()
